<!DOCTYPE html>

















































<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="description" content="Javadoc API documentation." />

<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>

  DJIBattery


</title>
<link href="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/customizations.css" rel="stylesheet" type="text/css" />
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/search_autocomplete.js" type="text/javascript"></script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/doclava-developer-docs.js" type="text/javascript"></script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
  setToRoot("../../../", "../../../../assets/");
</script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/doclava-developer-reference.js" type="text/javascript"></script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/navtree_data.js" type="text/javascript"></script>
<script src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/customizations.js" type="text/javascript"></script>
<noscript>
  <style type="text/css">
    html,body{overflow:auto;}
    #body-content{position:relative; top:0;}
    #doc-content{overflow:visible;border-left:3px solid #666;}
    #side-nav{padding:0;}
    #side-nav .toggle-list ul {display:block;}
    #resize-packages-nav{border-bottom:3px solid #666;}
  </style>
</noscript>
</head>

<body class="">

<div id="header">
    <div id="headerLeft">
	<h2>DJI Android Mobile SDK Reference</h2>    
</div>
    <div id="headerRight">
      
  <div id="search" >
      <div id="searchForm">
          <form accept-charset="utf-8" class="gsc-search-box" 
                onsubmit="return submit_search()">
            <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
                <tr>
                  <td class="gsc-input">
                    <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
                      title="search developer docs" name="q"
                      value="search developer docs"
                      onFocus="search_focus_changed(this, true)"
                      onBlur="search_focus_changed(this, false)"
                      onkeydown="return search_changed(event, true, '../../../')"
                      onkeyup="return search_changed(event, false, '../../../')" />
                  <div id="search_filtered_div" class="no-display">
                      <table id="search_filtered" cellspacing=0>
                      </table>
                  </div>
                  </td>
                  <td class="gsc-search-button">
                    <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
                  </td>
                  <td class="gsc-clear-button">
                    <div title="clear results" class="gsc-clear-button">&nbsp;</div>
                  </td>
                </tr></tbody>
              </table>
          </form>
      </div><!-- searchForm -->
  </div><!-- search -->
      
    </div>
</div><!-- header -->


  <div class="g-section g-tpl-240" id="body-content">
    <div class="g-unit g-first side-nav-resizable" id="side-nav">
      <div id="swapper">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav">
              <div id="index-links">
                <a href="../../../packages.html"  >Package Index</a> | 
                <a href="../../../classes.html" >Class Index</a>
              </div>
              <ul>
                
    <li class="api apilevel-">
  <a href="../AirLink/package-summary.html">dji.sdk.AirLink</a></li>
    <li class="selected api apilevel-">
  <a href="package-summary.html">dji.sdk.Battery</a></li>
    <li class="api apilevel-">
  <a href="../Camera/package-summary.html">dji.sdk.Camera</a></li>
    <li class="api apilevel-">
  <a href="../Codec/package-summary.html">dji.sdk.Codec</a></li>
    <li class="api apilevel-">
  <a href="../FlightController/package-summary.html">dji.sdk.FlightController</a></li>
    <li class="api apilevel-">
  <a href="../Gimbal/package-summary.html">dji.sdk.Gimbal</a></li>
    <li class="api apilevel-">
  <a href="../HandheldController/package-summary.html">dji.sdk.HandheldController</a></li>
    <li class="api apilevel-">
  <a href="../MissionManager/package-summary.html">dji.sdk.MissionManager</a></li>
    <li class="api apilevel-">
  <a href="../MissionManager/MissionStep/package-summary.html">dji.sdk.MissionManager.MissionStep</a></li>
    <li class="api apilevel-">
  <a href="../Products/package-summary.html">dji.sdk.Products</a></li>
    <li class="api apilevel-">
  <a href="../RemoteController/package-summary.html">dji.sdk.RemoteController</a></li>
    <li class="api apilevel-">
  <a href="../SDKManager/package-summary.html">dji.sdk.SDKManager</a></li>
    <li class="api apilevel-">
  <a href="../base/package-summary.html">dji.sdk.base</a></li>
              </ul><br/>
            </div> <!-- end packages -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav">
            <ul>
              
    <li><h2>Interfaces</h2>
      <ul>
          <li class="api apilevel-"><a href="DJIBattery.DJIBatteryStateUpdateCallback.html">DJIBattery.DJIBatteryStateUpdateCallback</a></li>
      </ul>
    </li>
              
    <li><h2>Classes</h2>
      <ul>
          <li class="selected api apilevel-"><a href="DJIBattery.html">DJIBattery</a></li>
          <li class="api apilevel-"><a href="DJIBattery.DJIBatteryCell.html">DJIBattery.DJIBatteryCell</a></li>
          <li class="api apilevel-"><a href="DJIBattery.DJIBatteryState.html">DJIBattery.DJIBatteryState</a></li>
          <li class="api apilevel-"><a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a></li>
      </ul>
    </li>
              
              
              
              
            </ul><br/>
          </div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display:none">
          <div id="index-links">
            <a href="../../../packages.html"  >Package Index</a> | 
            <a href="../../../classes.html" >Class Index</a>
          </div>
        </div><!-- end nav-tree -->
      </div><!-- end swapper -->
    </div> <!-- end side-nav -->
    <script>
      if (!isMobile) {
        $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("../../../");
        } else {
          addLoadEvent(function() {
            scrollIntoView("packages-nav");
            scrollIntoView("classes-nav");
          });
        }
        $("#swapper").css({borderBottom:"2px solid #aaa"});
      } else {
        swapNav(); // tree view should be used on mobile
      }
    </script>



<div class="g-unit" id="doc-content">

<div id="api-info-block">



  
   
  
  
  
  

  
   
  
  
  
  


<div class="sum-details-links">


Summary:

  <a href="#nestedclasses">Nested Classes</a>
  









  &#124; <a href="#pubctors">Ctors</a>
  



  &#124; <a href="#pubmethods">Methods</a>
  



  &#124; <a href="#inhmethods">Inherited Methods</a>

&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  


  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
     
    abstract
    class
<h1>DJIBattery</h1>



  
  
  

  
    extends <a href="../base/DJIBaseComponent.html">DJIBaseComponent</a><br/>
  
  
  

  
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-">
<table class="jd-inheritance-table">


    <tr>
         	
        <td colspan="3" class="jd-inheritance-class-cell">java.lang.Object</td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="2" class="jd-inheritance-class-cell"><a href="../base/DJIBaseComponent.html">dji.sdk.base.DJIBaseComponent</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="1" class="jd-inheritance-class-cell">dji.sdk.Battery.DJIBattery</td>
    </tr>
    

</table>







<div class="jd-descr">


<h2>Class Overview</h2>
<p>This class manages the battery's information and real-time status of the connected product.
</p>





</div><!-- jd-descr -->
















<div class="jd-descr">


<h2>Summary</h2>



<!-- ======== NESTED CLASS SUMMARY ======== -->
<table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classes</th></tr>


  
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        class</td>
      <td class="jd-linkcol"><a href="DJIBattery.DJIBatteryCell.html">DJIBattery.DJIBatteryCell</a></td>
      <td class="jd-descrcol" width="100%">Class that contains battery cell voltage data.&nbsp;</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        class</td>
      <td class="jd-linkcol"><a href="DJIBattery.DJIBatteryState.html">DJIBattery.DJIBatteryState</a></td>
      <td class="jd-descrcol" width="100%">The DJIBatteryState is used to keep track the real-time state of the battery.&nbsp;</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        interface</td>
      <td class="jd-linkcol"><a href="DJIBattery.DJIBatteryStateUpdateCallback.html">DJIBattery.DJIBatteryStateUpdateCallback</a></td>
      <td class="jd-descrcol" width="100%">This interface is for updating the battery state.&nbsp;</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        class</td>
      <td class="jd-linkcol"><a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a></td>
      <td class="jd-descrcol" width="100%">The DJIBatteryWarningInformation is used to keep a record of the unusual status of the battery
  for the past 30 days.&nbsp;</td>
    </tr>
    
    

</table>






















<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#DJIBattery()">DJIBattery</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#DJIBattery(int, int, int, int, int, int, int, int, int)">DJIBattery</a></span>(int designedEnergy, int fullChargeEnergy, int currentEnergy, int currentVoltage, int currentCurrent, int lifetimeRemainingPercent, int batteryEnergyRemainingPercent, int batteryTemperature, int numberOfDischarge)
        
  </td></tr>



</table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getCellVoltages(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.util.List<dji.sdk.Battery.DJIBattery.DJIBatteryCell>>)">getCellVoltages</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;List&lt;<a href="DJIBattery.DJIBatteryCell.html">DJIBattery.DJIBatteryCell</a>&gt;&gt; callback)
        
        <div class="jd-descrdiv">Gets the battery's cell voltages.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getCurrentWarningInformation(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<dji.sdk.Battery.DJIBattery.DJIBatteryWarningInformation>)">getCurrentWarningInformation</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;<a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a>&gt; callback)
        
        <div class="jd-descrdiv">Gets the battery's current warning information, which is one of seven battery warning information, which
  can be found at the top of DJIBattery.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getNumberOfCell()">getNumberOfCell</a></span>()
        
        <div class="jd-descrdiv">Returns the number of battery cells.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getSelfDischargeDay(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.Short>)">getSelfDischargeDay</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;Short&gt; callback)
        
        <div class="jd-descrdiv">Gets the battery's custom self-discharge configuration.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getSerialNumber(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.String>)">getSerialNumber</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;String&gt; callback)
        
        <div class="jd-descrdiv">Gets serial number of the component.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getVersion(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.String>)">getVersion</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;String&gt; callback)
        
        <div class="jd-descrdiv">Gets the battery's firmware version</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#getWarningInformationRecords(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.util.List<dji.sdk.Battery.DJIBattery.DJIBatteryWarningInformation>>)">getWarningInformationRecords</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;List&lt;<a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a>&gt;&gt; callback)
        
        <div class="jd-descrdiv">Gets the battery's warning information records.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#isConnected()">isConnected</a></span>()
        
        <div class="jd-descrdiv">This method could be used to detect whether the battery is plug-in or not.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#isSmartBattery()">isSmartBattery</a></span>()
        
        <div class="jd-descrdiv">Returns TRUE if battery is a smart battery.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#setBatteryStateUpdateCallback(dji.sdk.Battery.DJIBattery.DJIBatteryStateUpdateCallback)">setBatteryStateUpdateCallback</a></span>(<a href="DJIBattery.DJIBatteryStateUpdateCallback.html">DJIBattery.DJIBatteryStateUpdateCallback</a> callback)
        
        <div class="jd-descrdiv">Sets up the callback for updating the battery state.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="DJIBattery.html#setSelfDischargeDay(short, dji.sdk.base.DJIBaseComponent.DJICompletionCallback)">setSelfDischargeDay</a></span>(short day, <a href="../base/DJIBaseComponent.DJICompletionCallback.html">DJIBaseComponent.DJICompletionCallback</a> callback)
        
        <div class="jd-descrdiv">Sets battery's custom self-discharge configuration in the range of [1, 10] days.</div>
  
  </td></tr>



</table>







<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Methods</div></th></tr>


<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-dji.sdk.base.DJIBaseComponent" class="jd-expando-trigger closed"
          ><img id="inherited-methods-dji.sdk.base.DJIBaseComponent-trigger"
          src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  <a href="../base/DJIBaseComponent.html">dji.sdk.base.DJIBaseComponent</a>

<div id="inherited-methods-dji.sdk.base.DJIBaseComponent">
  <div id="inherited-methods-dji.sdk.base.DJIBaseComponent-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-dji.sdk.base.DJIBaseComponent-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../base/DJIBaseComponent.html#getSerialNumber(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.String>)">getSerialNumber</a></span>(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;String&gt; callback)
        
        <div class="jd-descrdiv">Get serial number of the component.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../base/DJIBaseComponent.html#isConnected()">isConnected</a></span>()
        
        <div class="jd-descrdiv">This is the method for detecting whether the component is connected.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../base/DJIBaseComponent.html#setDJIComponentListener(dji.sdk.base.DJIBaseComponent.DJIComponentListener)">setDJIComponentListener</a></span>(<a href="../base/DJIBaseComponent.DJIComponentListener.html">DJIBaseComponent.DJIComponentListener</a> listener)
        
        <div class="jd-descrdiv">Sets the listener to listen for the DJI component.</div>
  
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
          ><img id="inherited-methods-java.lang.Object-trigger"
          src="http://developer.dji.com/iframe/mobile-sdk-doc/android/assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  java.lang.Object

<div id="inherited-methods-java.lang.Object">
  <div id="inherited-methods-java.lang.Object-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">equals</span>(Object arg0)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            Class&lt;?&gt;
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">getClass</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">hashCode</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">notify</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">notifyAll</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">toString</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>(long arg0, int arg1)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>(long arg0)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>()
        
  </td></tr>


</table>
  </div>
</div>
</td></tr>


</table>


</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2>Public Constructors</h2>



<a id="DJIBattery()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        
      </span>
      <span class="sympad">DJIBattery</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="DJIBattery(int, int, int, int, int, int, int, int, int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        
      </span>
      <span class="sympad">DJIBattery</span>
      <span class="normal">(int designedEnergy, int fullChargeEnergy, int currentEnergy, int currentVoltage, int currentCurrent, int lifetimeRemainingPercent, int batteryEnergyRemainingPercent, int batteryTemperature, int numberOfDischarge)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2>Public Methods</h2>



<a id="getCellVoltages(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.util.List<dji.sdk.Battery.DJIBattery.DJIBatteryCell>>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">getCellVoltages</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;List&lt;<a href="DJIBattery.DJIBatteryCell.html">DJIBattery.DJIBatteryCell</a>&gt;&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the battery's cell voltages. The List named DJIBatteryCell 
  holds objects of type DJIBatteryCell. For the Inspire 1, since the 
  battery has 6 cells, the List<>DJIBatteryCell> will have 6 objects, 
  one for each battery cell.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>Remote execution result callback
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="getCurrentWarningInformation(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<dji.sdk.Battery.DJIBattery.DJIBatteryWarningInformation>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">getCurrentWarningInformation</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;<a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a>&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the battery's current warning information, which is one of seven battery warning information, which
  can be found at the top of DJIBattery. Need to check isSmartBattery method before using this method.
  Not supported by Osmo.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>Remote execution result callback
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="getNumberOfCell()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getNumberOfCell</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns the number of battery cells.
</p></div>

    </div>
</div>


<a id="getSelfDischargeDay(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.Short>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">getSelfDischargeDay</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;Short&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the battery's custom self-discharge configuration. Need to check
 isSmartBattery method before using this method.
 Not supported by Osmo.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>Remote execution result error callback. 
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="getSerialNumber(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.String>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">getSerialNumber</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;String&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets serial number of the component. 
 Please note this serial number does not match with the serial number found in the physical component.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>The execution callback with the value(s) returned. 

</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="getVersion(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.lang.String>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">getVersion</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;String&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the battery's firmware version</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>Remote execution result callback.
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="getWarningInformationRecords(dji.sdk.base.DJIBaseComponent.DJICompletionCallbackWith<java.util.List<dji.sdk.Battery.DJIBattery.DJIBatteryWarningInformation>>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">getWarningInformationRecords</span>
      <span class="normal">(<a href="../base/DJIBaseComponent.DJICompletionCallbackWith.html">DJICompletionCallbackWith</a>&lt;List&lt;<a href="DJIBattery.DJIBatteryWarningInformation.html">DJIBattery.DJIBatteryWarningInformation</a>&gt;&gt; callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the battery's warning information records. The DJI battery keeps the warning information records for
  the past 30 days. The NSArray named history in the block holds objects of type
  DJIBatteryWarningInformation. Need to check isSmartBattery method before using this method.
  Not supported by Osmo.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>callback</th>
          <td>Remote execution result callback
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="isConnected()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isConnected</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This method could be used to detect whether the battery is plug-in or not.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="../base/DJIBaseComponent.html#isConnected()">isConnected()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a id="isSmartBattery()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isSmartBattery</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns TRUE if battery is a smart battery.
</p></div>

    </div>
</div>


<a id="setBatteryStateUpdateCallback(dji.sdk.Battery.DJIBattery.DJIBatteryStateUpdateCallback)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setBatteryStateUpdateCallback</span>
      <span class="normal">(<a href="DJIBattery.DJIBatteryStateUpdateCallback.html">DJIBattery.DJIBatteryStateUpdateCallback</a> callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets up the callback for updating the battery state.
</p></div>

    </div>
</div>


<a id="setSelfDischargeDay(short, dji.sdk.base.DJIBaseComponent.DJICompletionCallback)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
        abstract 
         
        void
      </span>
      <span class="sympad">setSelfDischargeDay</span>
      <span class="normal">(short day, <a href="../base/DJIBaseComponent.DJICompletionCallback.html">DJIBaseComponent.DJICompletionCallback</a> callback)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets battery's custom self-discharge configuration in the range of [1, 10] days.
  For example, if the value for 'day' is set to 10, the battery will discharge over
  the course of 10 days. Need to check isSmartBattery method before using this method.
  Not supported by Osmo.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>day</th>
          <td>Day for self-discharge</td>
        </tr>
        <tr>
          <th>callback</th>
          <td>Remote execution result error callback.
</td>
        </tr>
      </table>
  </div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->



<!-- ========= END OF CLASS DATA ========= -->
<a id="navbar_top"></a>

<div id="footer">
Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
</div> <!-- end footer -->

</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 

<script type="text/javascript">
init(); /* initialize doclava-developer-docs.js */
</script>

</body>
</html>

<!-- Localized -->